import { request } from './thirdRequest.js'

export const thirdApi = {
  // 一言一句
  getOne: (data) => request('https://api.vvhan.com/api/ian/rand', 'GET', data),

  // 摸鱼日历
  getCalendar: (data) =>
    request('https://dayu.qqsuu.cn/moyuribao/apis.php?type=json', 'GET', data),
  // 明星吃瓜日报
  getStar: (data) =>
    request(
      'https://dayu.qqsuu.cn/mingxingbagua/apis.php?type=json',
      'GET',
      data
    ),

  //新闻简报
  getNews: (data) =>
    request(
      'https://dayu.qqsuu.cn/weiyujianbao/apis.php?type=json',
      'GET',
      data
    ),
  // 笑话api
  getJoke: (data) =>
    request('https://api.vvhan.com/api/text/joke', 'GET', data),
  // 骚话api
  getBash: (data) =>
    request('https://api.vvhan.com/api/text/sexy', 'GET', data),

  // 星座运势api
  // 今日运势
  getFortune: (data) =>
    request(
      `https://api.vvhan.com/api/horoscope?type=${data.type}&time=${data.time}`,
      'GET'
    )
}
